$(function () {
    init_swiper();
    init_swiper1();
});

function init_swiper() {
    var mySwiper = new Swiper ('#topSwiper',{
        // 无线循环
        loop:true,
        // 3000毫秒换一张图片
        autoplay:3000,
        // 自动播放互动时禁用
        autoplayDisableOnInteraction: false,
        // 分页器
        pagination: '.swiper-pagination',

    });
}

function init_swiper1() {
    var mySwiper = new Swiper('#swiperMenu',{
        slidesPerView:3, //num 将num张图片挤压在一起
    })
}